﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReimbList.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.Reimb.ReimbList"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>  
    <script type="text/javascript">
        function showPage(url) {
            window.showModalDialog(encodeURI(url), "", "dialogWidth=800px;dialogHeight=600px");            
        }
    </script>  
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align:right; margin-bottom:5px;">
        <asp:Button ID="btnCreate" runat="server" Text="新建报销单" 
            onclick="btnCreate_Click"></asp:Button>
    </div>
    <div>
        <asp:GridView ID="gvReimb" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" Font-Size="9pt" ForeColor="#333333" GridLines="Both"
                Width="100%" onrowcommand="gvReimb_RowCommand" DataKeyNames="FlowID, FlowInstanceID" onrowdatabound="gvReimb_RowDataBound">                                   
                <Columns>
                    <asp:BoundField HeaderText="部门" DataField="Dept" ItemStyle-Width="100px" />
                    <asp:BoundField HeaderText="报销人" DataField="ReimbName" ItemStyle-Width="60px" />
                    <asp:BoundField HeaderText="币种" DataField="Currency" ItemStyle-Width="50px" />
                    <asp:BoundField HeaderText="金额" DataField="Amount" ItemStyle-Width="80px" />
                    <asp:BoundField HeaderText="用途" DataField="Purpose" />
                    <asp:BoundField HeaderText="创建人" DataField="CreateUser" ItemStyle-Width="60px" />
                    <asp:BoundField HeaderText="创建时间" DataField="CreateDate" ItemStyle-Width="100px" />
                    <asp:BoundField HeaderText="修改人" DataField="ModifyUser" ItemStyle-Width="60px" />
                    <asp:BoundField HeaderText="修改时间" DataField="ModifyDate" ItemStyle-Width="100px" />
                    <asp:BoundField HeaderText="流程状态" DataField="Completed" ItemStyle-Width="60px" />
                    <asp:TemplateField HeaderText="操作" ItemStyle-Width="130px" ItemStyle-HorizontalAlign="Left">
                        <ItemTemplate>
                            <asp:Button ID="btnEdit" runat="server" Text="编辑" Height="20px" CommandName="CmdEdit"></asp:Button>                            
                            <asp:Button ID="btnFlow" runat="server" Text="流程" Height="20px" CommandName="CmdShowFlow"></asp:Button>
                            <asp:Button ID="btnDelete" runat="server" Text="删除" Height="20px" CommandName="CmdDelete"></asp:Button>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
                <RowStyle BackColor="#FAFAFA" ForeColor="#333333" HorizontalAlign="Center"/>
                <EmptyDataTemplate>
                    <div style="text-align:center; margin-top:20px; margin-bottom:20px;">当前没有任何数据</div>        
                </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
